package pers.buyusan;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import pers.buyusan.service.HelloService;

import java.io.IOException;

public class DubboConsumer {

    public static void main(String[] args) throws IOException,
            InterruptedException {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("dubbo-*.xml");
        context.start();

        HelloService service =
                context.getBean(HelloService.class);

        service.sayBye("byebye");

    }

}
